package com.hsq.spzx.product.mapper.product;

import com.hsq.spzx.model.dto.h5.ProductSkuDto;
import com.hsq.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hsq
 * @date 2025年06月13日下午5:07
 */
@Mapper
public interface ProductSkuMapper {
    List<ProductSku> findProductSkuBySale();

    List<ProductSku> findByPage(ProductSkuDto productSkuDto);


    ProductSku getById(Long skuId);

    List<ProductSku> findByProductId(Long id);

    void updateSale(@Param("skuId") Long skuId, @Param("num") Integer num);
}
